#ifndef _CONTROL_H_
#define _CONTROL_H_

#define CREATE_PANEL( __controlInstanceName )	\
	interfacelib::Window::Panel		*__controlInstanceName	= new interfacelib::Window::Panel()
#define CREATE_WINDOW( __controlInstanceName )	\
	interfacelib::Window::Window	*__controlInstanceName	= new interfacelib::Window::Window()
#define CREATE_BUTTON( __controlInstanceName )	\
	interfacelib::Window::Button	*__controlInstanceName	= new interfacelib::Window::Button()
#define CREATE_EDITBOX( __controlInstanceName )	\
	interfacelib::Window::EditBox	*__controlInstanceName	= new interfacelib::Window::EditBox()

// Custom
#define CREATE_SCROLL_USER_LIST( x )	x = new ScrollUserList;
#define CREATE_CHANNEL_INFO( x )		x = new ChannelInfoPanel;
#define CREATE_MAKE_CHANNEL_DIALOG( x )	x = new MakeChannelDialog;
#define CREATE_USER_SLOT_PANEL( x )		x = new UserSlotPanel;

#endif